package com.py.article.controller.v1;

import com.py.article.service.ArticleLoadBehaviorService;
import com.py.model.article.dtos.ArticleInfoDto;
import com.py.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ArticleLoadBehaviorController
 * @Description TODO
 * @Author AXing
 * @Date 2022/11/17 14:29
 * @Version 1.0
 */
@RestController
@RequestMapping("/api/v1/article")
public class ArticleLoadBehaviorController {

    @Autowired
    private ArticleLoadBehaviorService behaviorService;

    @PostMapping("/load_article_behavior")
    public ResponseResult articleBehavior(@RequestBody ArticleInfoDto dto){
        return behaviorService.articleBehavior(dto);
    }
}
